require("@nomicfoundation/hardhat-toolbox");
//require("dotenv").config()
require("@chainlink/env-enc").config()
require("./tasks")
require("hardhat-deploy")
require("@nomicfoundation/hardhat-ethers");
require("hardhat-deploy-ethers");

//require("@nomicfoundation/hardhat-verify");

//const SEPOLIA_URL = "https://eth-sepolia.g.alchemy.com/v2/O0CeWPv-gmbF5CVDZWoutojblcQ4OQbl"
//const PRIVATE_KEY = "b34600590f9acde6e76c6243f506534be40d1731d66bab1584882e2572b42fb0"
const SEPOLIA_URL = process.env.SEPOLIA_URL
const PRIVATE_KEY = process.env.PRIVATE_KEY
const ETHERSCAN_API_KEY = process.env.ETHERSCAN_API_KEY
const PRIVATE_KEY_1 = process.env.PRIVATE_KEY_1

/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
  // defaultNetwork: "hardhat", // 默认使用hardhat网络
  solidity: "0.8.28",
  defaultNetwork: "hardhat",
  mocha: {
    timeout: 300000
  },
  networks: {
    sepolia: {
      url: SEPOLIA_URL,
      accounts: [PRIVATE_KEY, PRIVATE_KEY_1],
      chainId: 11155111
    }
  },
  etherscan: {
    //apiKey: process.env.ETHERSCAN_API_KEY
    apiKey: {
      sepolia: ETHERSCAN_API_KEY
    }
  },
  namedAccounts: {
    firstAccount: {
      default: 0,
    },
    secondAccount: {
      default: 1,
    }
  },
  gasReporter: {
    enabled: true
  }

};

